// 
// Decompiled by Procyon v0.5.36
// 

package com.cyberfend.cyfsecurity;

import java.util.*;
import android.text.*;
import android.os.*;

final class w extends java.util.Observable implements android.text.TextWatcher
{
    private final int a;
    private boolean b;
    private static int c;
    private int d;
    private boolean e;
    
    w(final int a, final boolean b) {
        this.b = false;
        this.d = 0;
        this.e = false;
        this.a = a;
        this.b = b;
    }
    
    public final void afterTextChanged(final android.text.Editable s) {
    }
    
    public final void beforeTextChanged(final java.lang.CharSequence s, final int start, final int count, final int after) {
    }
    
    public final void onTextChanged(final java.lang.CharSequence s, final int start, final int before, final int count) {
        if (com.cyberfend.cyfsecurity.w.c != this.a) {
            com.cyberfend.cyfsecurity.e.h = 0;
            com.cyberfend.cyfsecurity.w.c = this.a;
        }
        try {
            ++com.cyberfend.cyfsecurity.e.i;
            if (s.length() - this.d > 1) {
                this.e = true;
            }
            else {
                this.e = false;
            }
            this.d = s.length();
            if (com.cyberfend.cyfsecurity.e.i <= 50L) {
                final java.lang.Long value = android.os.SystemClock.uptimeMillis() - com.cyberfend.cyfsecurity.d.e;
                if (com.cyberfend.cyfsecurity.e.h < 9) {
                    try {
                        this.setChanged();
                        this.notifyObservers(new com.cyberfend.cyfsecurity.g(value, "2", this.a, this.e));
                    }
                    catch (java.lang.Exception ex) {
                        (new java.lang.Throwable[1])[0] = ex;
                    }
                }
                if (com.cyberfend.cyfsecurity.d.d) {
                    this.setChanged();
                    this.notifyObservers(null);
                }
            }
        }
        catch (java.lang.Exception ex2) {
            com.cyberfend.cyfsecurity.f.a((java.lang.Exception)((new java.lang.Throwable[1])[0] = ex2));
        }
    }
    
    static {
        com.cyberfend.cyfsecurity.w.c = -1;
    }
}
